package com.sc.common.service.impl;

import com.sc.common.mapper.StudentMapper;
import com.sc.common.pojo.Student;
import com.sc.common.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("ss")
public class StudentServiceImpl implements StudentService {
    @Autowired
    StudentMapper mapper;

    @Override
    public Student selectByUsername(String username) {
        return mapper.selectByUsername(username);
    }

    @Override
    public int insert(Student student) {
        return mapper.insertSelective(student);
    }
}
